package com.mall.service.impl;

import com.mall.dao.IDictDao;
import com.mall.domain.Dict;
import com.mall.domain.ItemGoods;
import com.mall.service.IDictService;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 热词的业务层接口
 * @author : liangY
 * @date : 2021-01-14 0:23
 */
@Service("dictService")
public class DictServiceImpl implements IDictService {

    @Autowired
    private IDictDao dictDao;

    /**
     * 查询所有热词
     * @return
     */
    @Override
    public List<Dict> findAll(){
        return dictDao.findAll();
    }
    @Override
    public Integer update(Dict dict){
        return dictDao.update(dict);
    }

}
